﻿using System.Threading.Tasks;
using System.Threading;
using Microsoft.Extensions.Hosting;

namespace Yqd.Core
{
    public class SuperviseHostService : BackgroundService
    {
        protected override async Task ExecuteAsync(CancellationToken stoppingToken)
        {
            while (!stoppingToken.IsCancellationRequested)
            {
                SuperviseService.UpdateDelayStatus();
                Thread.Sleep(3000);
                await Task.Delay((1000 * 60 * 60), stoppingToken);
            }
        }

    }
}
